<?php
/**
 * The template used for displaying page content in page.php
 *
 * @package WordPress
 * @subpackage Twenty_Twelve
 * @since Twenty Twelve 1.0
 */
?>

	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<header class="entry-header">
			<h1 class="entry-title"><?php the_title(); ?></h1>
            <?php include 'social-block.php'; ?>
		</header>

		<div class="entry-content">
        
        	<!-- CONTENT FOR POPULAR TAGS PAGE -->
            <?php if(is_page('27110')) { ?>
            
            	<?php 
  					$args = array(
    					'taxonomy'  => array('post_tag', 'product_tag'),
						'link' => 'view',
						'smallest' => 8,
						'largest' => 22,
   					); 
   
  					wp_tag_cloud($args);
				?>
            
        	<?php } ?>
			<?php if(is_page('27110')) : echo do_shortcode('[featuredproducts]'); endif; ?>
            <?php if(is_page('27110')) : echo '<h2 class="pagesubsectionheader">Try Searching Our Products...</h2>'; endif; ?>
            <?php if(is_page('27110')) : echo do_shortcode('[do_widget "WooCommerce Predictive Search"]'); endif; ?>
            <?php if(is_page('27110')) : include 'customfunctions/display-pages-by-template-brand-page.php' ; endif ; ?>
            <!-- END CONTENT FOR POPULAR TAGS PAGE -->
                        
			<?php the_content(); ?>
            
            <?php // Show List Of Child Pages On Pages Inside The Learning Center
				if (get_post_meta($post->ID, 'showchildpages', true) == 'Yes') { include ('custom-function-children-of-current-page.php'); }
				if (get_post_meta($post->ID, 'showchildpages', true) == 'Yes') { ?>
                <style>
					.yarpp-related { display:none; }
				</style>
			<?php } ?>
            
			<?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
		</div><!-- .entry-content -->
		<footer class="entry-meta">
			<?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
		</footer><!-- .entry-meta -->
	</article><!-- #post -->
